package com.supos.progress.util;

import com.supos.progress.entity.Result;

public class FormatResultUtil {
    public static Result formatResult(){
        Result result = new Result();
        result.setErrcode(0);
        result.setMessage("success");
        return result;
    }

    public static Result<Object> formatResult(Object obj){
        Result<Object> result = new Result<>();
        result.setErrcode(0);
        result.setMessage("success");
        result.setData(obj);
        return result;
    }
}
